package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.pojo.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @program:
 * @description:
 * @author: Qian Jin
 * @create: 2021-07-12
 * @detail:
 **/

@NoArgsConstructor
@Data
public class WxGoodsDetailVo {

    private List<SpecificationListDTO> specificationList;
    private List<MallGrouponRules> groupon;
    private List<Issue> issue;
    private Integer userHasCollect;
    private String shareImage;
    private CommentDTO comment;
    private List<GoodsAttribute> attribute;
    private GoodsBrand brand;
    private List<GoodsProduct> productList;
    private Goods info;

    @NoArgsConstructor
    @Data
    public static class CommentDTO {
        private List<DataDTO> data;
        private Integer count;

        @NoArgsConstructor
        @Data
        public static class DataDTO {
            private Date addTime;
            private String[] picList;
            private String nickname;
            private Integer id;
            private String avatar;
            private String content;
        }
    }


    @NoArgsConstructor
    @Data
    public static class SpecificationListDTO {
        private String name;
        private List<GoodsSpecification> valueList;
    }

}
